Skip to content

[WC-2922]: Add aggregate utils for charts #1562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 3, 2025

Conversation

rahmanunver
Copy link
Contributor

Pull request type

Bug fix (non-breaking change which fixes an issue)


Description

Added a new aggregations.ts in the charts utilities to be used instead of the deprecated plotly.js aggregations.

What should be covered while testing?

All Charts (area, bar, bubble, column, line, time-series) should have working aggregations displayed in the charts/graphs.

@rahmanunver rahmanunver requested a review from a team as a code owner May 8, 2025 15:55
@rahmanunver rahmanunver force-pushed the wc-2922_charts-aggregate-utils branch from 068af2d to 190c64e Compare May 8, 2025 15:55
@gjulivan
Copy link
Collaborator

gjulivan commented May 8, 2025

i think we can remove all transform property from all charts,
and simply put aggregateDataPoints inside extractDataPoints function.
this way all other charts code are intact.

maybe need to add
aggregationType: AggregationTypeEnum; to PlotDataSeries
to complete the type.
the data seems to be already there

@rahmanunver rahmanunver force-pushed the wc-2922_charts-aggregate-utils branch 3 times, most recently from 29a1379 to c2f33aa Compare May 20, 2025 14:39
gjulivan
gjulivan previously approved these changes May 21, 2025
@rahmanunver rahmanunver force-pushed the wc-2922_charts-aggregate-utils branch from 9b9fc87 to 0d4391b Compare May 26, 2025 14:08
@rahmanunver rahmanunver force-pushed the wc-2922_charts-aggregate-utils branch 2 times, most recently from a82ad74 to 48994c4 Compare May 28, 2025 15:48
@gjulivan gjulivan force-pushed the wc-2922_charts-aggregate-utils branch from 48994c4 to 451a69a Compare June 3, 2025 07:39
@gjulivan gjulivan force-pushed the wc-2922_charts-aggregate-utils branch from f1de461 to e3a492f Compare June 3, 2025 14:33
@gjulivan gjulivan force-pushed the wc-2922_charts-aggregate-utils branch from e3a492f to 45f14fc Compare June 3, 2025 14:36
@gjulivan gjulivan merged commit 8410c6f into main Jun 3, 2025
16 checks passed
@gjulivan gjulivan deleted the wc-2922_charts-aggregate-utils branch June 3, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants